package com.ruoyi.chargepile.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.chargepile.domain.ChargePile;
import com.ruoyi.chargepile.domain.vo.ChargePileCountByStatusVo;
import com.ruoyi.chargepile.domain.vo.OnlyOneQueryValue;
import com.ruoyi.chargepile.mapper.ChargePileMapper;
import com.ruoyi.chargepile.service.ChargePileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 充电桩 服务实现类
 * </p>
 *
 * @author zxc
 * @since 2024-07-03
 */
@Service
public class ChargePileServiceImpl extends ServiceImpl<ChargePileMapper, ChargePile> implements ChargePileService {

    @Resource
    private ChargePileMapper chargePileMapper;

    @Override
    public List<ChargePileCountByStatusVo> getChargePileStatusByTypeVo() {
        return chargePileMapper.getChargePileStatusByTypeVo();
    }

    @Override
    public List<OnlyOneQueryValue> listRepairPileNumber(Integer userId) {
        return chargePileMapper.listRepairPileNumber(userId);
    }

    @Override
    public List<OnlyOneQueryValue> listChargeRecordsPileNumber(Integer userId) {
        return chargePileMapper.listChargeRecordsPileNumber(userId);
    }
}
